<template>
    <van-search v-model="value" shape="round" background="#4fc08d" placeholder="请输入搜索关键词" @click="tz" />
    <van-swipe :autoplay="3000" lazy-render>
        <van-swipe-item v-for="i in lbtdata" :key="image">
            <img :src="i.image_src" style="width: 100%;" />
        </van-swipe-item>
    </van-swipe>
    <van-grid :border="false" :column-num="4">
        <van-grid-item v-for="i in dhdata" >
            <van-image :src="i.image_src" />
        </van-grid-item>
    </van-grid>
<div v-for="i in lcdata">
    <img :src="i.floor_title.image_src" alt="" style="width: 100%;">
    <div v-for="item in i.product_list">
        <img :src="item.image_src" alt="" style="width: 120px;
        height: 120px; float: left; margin-left: 3px;">
    </div>
</div>
</template>

<script setup>
import { ref } from 'vue';
import { lbt, dh, lc } from '@/api/api';
import { useRouter } from 'vue-router';
let router = useRouter()
const lbtdata = ref([])
lbt().then(res => {
    console.log('轮播图', res)
    lbtdata.value = res.data.message
})
const dhdata = ref([])
dh().then(res => {
    console.log('导航', res)
    dhdata.value = res.data.message
})
const lcdata = ref([])
lc().then(res => {
    console.log('楼层', res)
    lcdata.value = res.data.message
})
let tz = () => {
    router.push('/ss')
}
</script>

<style lang="scss" scoped></style>